class Person1 {
    public String name;
    public int age;

    public Person1(String name, int age) {
        this.name = name;
        this.age = age;
    }

}

public class TestObject {
    public static void main(String[] args) {
        Person per1 = new Person("zhangsan", 20) ;
        Person per2 = new Person("zhangsan", 20) ;
        System.out.println(per1.hashCode());
        System.out.println(per2.hashCode());
    }
}
